package org.oslims.client.service;

import java.util.List;

import org.oslims.domain.Analysis;
import org.oslims.domain.SampleType;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface AnalysisServiceAsync {

	void getAllAnalysis(AsyncCallback<List<Analysis>> callback);

	void saveOrUpdateAnalysis(Analysis analysis, AsyncCallback<Void> callback);

	void getAllAnalysis(int start, int length, String sortBy, boolean desc, AsyncCallback<List<Analysis>> callback);

	void getAnalysisCount(AsyncCallback<Integer> callback);

	void getAnalysisForSampleTypes(List<SampleType> sampleTypes, AsyncCallback<List<Analysis>> callback);

	void getAllAnalysisByState(String state, AsyncCallback<List<Analysis>> callback);

}
